package com.jimmy.medical.service.impl;

import com.jimmy.medical.base.impl.JpaSpecificationServiceImpl;
import com.jimmy.medical.entity.UploadFile;
import com.jimmy.medical.repository.UploadFileRepository;
import com.jimmy.medical.service.IUploadFileService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UploadFileServiceImpl extends JpaSpecificationServiceImpl<UploadFileRepository, UploadFileRepository, UploadFile, Long>
        implements IUploadFileService {

    @Override
    public List<UploadFile> findAllByRelateKey(String relateKey) {
        return repository.findByRelatedKey(relateKey);
    }
}